/** 
 * @file Iconv.h
 * @Synopsis  iconv
 * @author JzeTech 
 * @version 0.1 beta
 * @date 2009-08-27
 */
#ifndef _ICONV_H_
#define _ICONV_H_

#include "sysiconv.h"

/* --------------------------------------------------------------------------*/
/** 
 * @Synopsis  utf-8 to gb2312
 * 
 * @Param sourcebuf
 * @Param sourcelen
 * @Param destbuf
 * @Param destlen
 * 
 * @Returns   
 */
/* ----------------------------------------------------------------------------*/
int Utf8ToGb2312(char *sourcebuf,size_t sourcelen,char *destbuf,size_t destlen);


/* --------------------------------------------------------------------------*/
/** 
 * @Synopsis  gb2312 to utf8
 * 
 * @Param sourcebuf
 * @Param sourcelen
 * @Param destbuf
 * @Param destlen
 * 
 * @Returns   
 */
/* ----------------------------------------------------------------------------*/
int Gb2312ToUtf8(char *sourcebuf,size_t sourcelen,char *destbuf,size_t destlen);

#endif

